home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
cmln1085.arc
/
P8.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1986-02-27
|
896b
|
31 lines
program p8; {input tester}
{Just for fun}
var x,y,i,j,p : integer; sx,sy, s : string[20];
mode, device : integer;
const default = 2; {default valuator device}
{$iB:GSXWORK.INC}
{$iB:GSXTEXT.INC}
{$iB:GSXINPUT.INC}
begin
write('Enter workstation number > '); readln(i); writeln;
device := default;
writeln('Enter mode 1=req, 2=sample > '); readln(mode);
openstation(i);
setinputmode(device,mode,i);
writeln(' realized mode was ', i);
j := 16000;
repeat i:=i+1;
if inputvaluator(device, mode, j, y) > 0 then begin
str(y,sy); s := '(' + sy + ')';
showtext(s, length(s), j, 1500*y)
end
until i=10;
readln;
clearstation;
closestation
end.